#include<stdio.h>	
#include<math.h>

int main(){
			double a, b, c, d, e, x, y;
			printf("\n Ingrese los coeficientes del polinomio \n \n");
			scanf("%lf %lf %lf",&a,&b,&c);
			
			if (b*b-4*a*c > 0){
							  d = sqrt(b*b-4*a*c);
							  printf("Las raices del polinomio son \n\n raiz 1 = %lf + i*0 \n \n",(d-b)/(2*a));
							  printf("\n\n raiz 2 = %lf + i*0 \n \n",(-d-b)/(2*a));
                              }

		    else if (b*b-4*a*c < 0){
							  d = sqrt(-(b*b-4*a*c));
							  printf("Las raices del polinomio son \n\n raiz 1 = %lf + i*%lf \n \n",-b/(2*a),d/(2*a));
							  printf("\n\n raiz 2 = %lf - i*%lf \n \n",-b/(2*a),d/(2*a));
							  }
return 0;
}


